package com.movitech.mobile.cz.base.bizconfig.service;

import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.bizconfig.entity.SSuppliersCategoryTemplate;
import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.sys.bizvo.SuppliersCategoryTemplateListRequestVO;
import com.movitech.mobile.cz.base.sys.bizvo.SuppliersCategoryTemplateRequestVO;
import com.movitech.mobile.cz.base.sys.bizvo.SuppliersCategoryTemplateResponseVO;
import com.movitech.mobile.cz.base.sys.bizvo.SuppliersCategoryTemplateVO;

import java.util.List;

/**
 * <p>
 * 供应商分类--模板设置 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
public interface SSuppliersCategoryTemplateService extends IService<SSuppliersCategoryTemplate> {

	/**
	 * 供应商分类模版新增/修改
	 * @param
	 * @return
	 */
	public RestReturnResult<Object> saveOrUpdateSuppliersCategoryTemplate(
			SuppliersCategoryTemplateVO suppliersCategoryTemplateVO);

	/**
	 * 供应商分类模版删除
	 * @param id
	 * @return
	 */
	public RestReturnResult<Object> updateSuppliersCategoryTemplateForDel(String id);

	/**
	 * 供应商分类模版查询
	 * @param suppliersCategoryTemplateListRequestVO
	 * @return
	 */
	public RestReturnResult searchSuppliersCategoryTemplateList(SuppliersCategoryTemplateListRequestVO suppliersCategoryTemplateListRequestVO);

	/**
	 * 根据分类和模版类型查询单个模版
	 * @param suppliersCategoryTemplateRequestVO
	 * @return
	 */
	public List<SuppliersCategoryTemplateResponseVO> getSuppliersCategoryTemplateDetails(
			SuppliersCategoryTemplateRequestVO suppliersCategoryTemplateRequestVO);

    String getSupplierCategoryTemplateNames(String[] categoryIds,Integer templateType);


    List<SSuppliersCategoryTemplate> selectByCategoryIdAndTypes(String categoryId,Integer... types);
}
